package com.client.a.controller;

import com.example.clientb.sdk.feignclients.ClientBClient;
import com.example.clientb.sdk.vo.ClientBInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("info")
public class ClientAController {

    @Autowired
    private ClientBClient clientBClient;

    @GetMapping("getInfo")
    public ClientBInfoVO getInfo() {

        return clientBClient.getInfo();
    }
}
